package com.allenlee.mvphelper.module.testinfo;

import com.allenlee.mvphelper.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.List;

/**
 * @author : lifei
 * 创建时间： 19-12-17
 * 更改时间： 19-12-17
 * Email : allen.lee723@qq.com
 * @version :
 * Description：
 */
public class TestInfoAdapter extends BaseQuickAdapter<TestInfo, BaseViewHolder> {

    public TestInfoAdapter(List<TestInfo> data) {
        super(R.layout.item_test_info, data);
    }

    @Override
    protected void convert(BaseViewHolder viewHolder, TestInfo item) {
        viewHolder.setText(R.id.item_test_info_date_tv, item.getData())
            .setText(R.id.item_test_info_time_tv, item.getTime())
            .setText(R.id.item_test_info_sn_tv, item.getSn())
            .setText(R.id.item_test_info_desc_tv, item.getDescribe());
    }
}